refactor: decompose domain analysis and feature modules#492
Merged
carlos-alm merged 25 commits intomainfrom Mar 17, 2026
Merged
refactor: decompose domain analysis and feature modules#492carlos-alm merged 25 commits intomainfrom
carlos-alm merged 25 commits intomainfrom
Conversation
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Titan quality sweep — phase 5b + 6.1: decompose domain analysis functions and feature modules.
Domain analysis
contextData→ split file-context from function-context assemblydiffImpactData→ separate git-diff parsing from impact aggregationstatsData→ extract stats collection and quality scoringpathData/fnDepsData→ extract path formatting helpersFeatures
buildComplexityMetrics→ extract metric collection and formattingbuildStructure→ split traversal, cohesion scoring, classificationbuildCFGData/buildDataflowEdges→ extract graph construction helperssequenceData→ separate BFS traversal from message constructionvalidateBoundaryConfig(cog 101→2) → extract per-section validatorscommunitiesData(cog 32→4) → extract community building and drift analysistriageData(bugs 1.4→0.48) → extract scoring and summary computationStacked on
Files changed (12)
src/domain/analysis/context.js,dependencies.js,impact.js,module-map.jssrc/features/complexity.js,structure.js,cfg.js,dataflow.js,sequence.jssrc/features/boundaries.js,communities.js,triage.jsTest plan